<template>
  <footer class="footer">
    <div class="container">
      <div class="footer-content">
        <div class="footer-section about">
          <h3 class="footer-title">代码小英雄</h3>
          <p>8-16岁青少年编程学习平台，致力于提供优质的少儿编程教育资源。</p>
        </div>
        
        <!-- 校区分布 -->
        <div class="footer-section campus">
          <h3 class="footer-title">校区分布</h3>
          <ul class="campus-list">
            <li>📍 桂城中海环宇城校区</li>
            <li>📍 桂城佳盛广场校区（猿码编程）</li>
            <li>📍 狮山京东数字产业园校区</li>
            <li>📍 罗村富弘广场校区</li>
            <li>📍 大沥广佛智城校区</li>
          </ul>
        </div>
        
        <!-- 二维码区域 -->
        <div class="footer-section qrcode">
          <h3 class="footer-title">扫码了解更多</h3>
          <div class="qrcode-container">
            <div class="qrcode-item">
              <img src="../../gallery/hezuoma.png" alt="平台合作" class="qr-image">
              <p class="qr-label">平台合作</p>
            </div>
            <div class="qrcode-item">
              <img src="../../gallery/zixunma.png" alt="课程咨询" class="qr-image">
              <p class="qr-label">课程咨询</p>
            </div>
          </div>
        </div>
      </div>
      
      <div class="footer-bottom">
        <div class="copyright">
          &copy; 2026 - 版权所有 CodeHero
        </div>
      </div>
    </div>
  </footer>
</template>

<script>
export default {
  name: 'TheFooter'
}
</script>

<style scoped>
.footer {
  background-color: #2c3e50;
  color: #b3c4d8;
  padding: 60px 0 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-title {
  color: white;
  margin-bottom: 20px;
  font-size: 18px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background-color: #3e8ef7;
}

.footer-section p {
  line-height: 1.6;
  margin-bottom: 20px;
}

/* 校区列表样式 */
.campus-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.campus-list li {
  padding: 8px 0;
  line-height: 1.8;
  font-size: 14px;
  color: #b3c4d8;
}

/* 二维码样式 */
.qrcode-container {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
}

.qrcode-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.qr-image {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  background: white;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  margin-bottom: 10px;
}

.qr-label {
  font-size: 13px;
  color: #b3c4d8;
  margin: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
}

.copyright {
  font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  
  .footer-section.qrcode {
    grid-column: 1 / -1;
  }
  
  .qrcode-container {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 10px;
  }
  
  .footer-section.qrcode {
    grid-column: auto;
  }
  
  .qrcode-container {
    flex-direction: column;
    align-items: center;
  }
  
  .campus-list li {
    font-size: 13px;
  }
}
</style> 